<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateBaseConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('base_configs', function (Blueprint $table) {
            $table->id();
            $table->string('coupon')->nullable()->comment('优惠券图片');
            $table->string('home_banner')->nullable()->comment('首页轮播图');
            $table->string('home_advert')->nullable()->comment('首页广告图');
            $table->string('login_advert')->nullable()->comment('登录页广告图');
            $table->string('wechat_service')->nullable()->comment('微信客服');
            $table->string('wechat_phone')->nullable()->comment('微信电话');
            $table->text('district')->nullable()->comment('街道取车范围');
            $table->longText('reserve')->nullable()->comment('预定条款');
            $table->longText('fee')->nullable()->comment('费用说明');
            $table->longText('notice')->nullable()->comment('费用须知');
            $table->text('car_series')->nullable()->comment('精品服务');
            $table->string('car_category')->nullable()->comment('车类别');
            $table->string('car_label')->nullable()->comment('车标签');
            $table->longText('description')->nullable()->comment('费用说明');
            $table->integer('limit_seconds')->default(21600)->comment('限制小时收费，默认6小时:21600秒');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('base_configs');
    }
}
